package cn.pxs.entity;

import java.sql.Date;

//对应购物车表
public class Cart {
    private Integer id;//唯一id
    private Integer uid;//用户id
    private Integer bookid;//书本id
    private Integer num;//购买数量
    private Date tcreate;//加入购物车时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", uid=" + uid +
                ", bookid=" + bookid +
                ", num=" + num +
                ", tcreate=" + tcreate +
                '}';
    }
}
